home *** CD-ROM | disk | FTP | other *** search
- Path: thor.tu.hac.com!collins
- From: collins@thor.tu.hac.com (Ron Collins)
- Newsgroups: comp.lang.c
- Subject: Re: Constructor?
- Date: 12 Jan 1996 19:27:06 GMT
- Organization: Advanced Depot Systems
- Message-ID: <4d6cma$d23@hacgate2.hac.com>
- References: <00001a80+00006b6c@msn.com>
- NNTP-Posting-Host: thor.tu.hac.com
-
- kenneth long (Pacu@msn.com) wrote:
- : In a program example, I saw something similar to the following:
-
- : public:
- : CString str;
- : (etc..)
-
-
- : Later, in a function, I saw:
-
- : Function()
- :
- : Cstring str;
- : (etc..)
-
- : In episode one, is it declaring str to be of CString type or is it
- : constructed there? And in the second instance, inside of the
- : function, is it being constructed or is it a variable of CString
- : type? If this example is too vague, I will try to find the missing
- : pieces, but I ask it in a general sense concerning the nature of
- : constuctors and variable tpe declaration. Any help is appreciated via
- : personal e-mail. Pacu.
- :
-
- Based on your example, it's impossible to tell if Cstring employs a constructor,
- or is a simple defined type.
-
- BTW, this belongs over in comp.lang.c++. The C language knows nothing about
- "public", "constructor", etc.
-
- BTW again, are you the same "Pacu" that was looking for certification as a
- C++ programmer? If so, then I would suggest that you are _not_ ready for
- certification yet.
-
- -- Collins --
-
-